package com.example.example.fragment;

import android.text.Html;
import android.text.method.ScrollingMovementMethod;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.example.R;

/***
 * Created by Administrator on 2017/11/4.
 */

public class FiveFragment extends BaseFragment {

    private ImageView imageView;
    private RelativeLayout zongRe;


    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        imageView= (ImageView) findViewById(R.id.imageView);
        zongRe= (RelativeLayout) findViewById(R.id.zongRe);

        TextView text= (TextView) findViewById(R.id.text);
        String bets = "<html><body><b>" + "装提示：" +
                "</b></font></body></html>" + "再有朋友跟你吹嘘自己“阅尽天下书”\n" +
                "时，把这一本扔给他，保证他还书时是跪着前\n" +
                "来的。\n" +
                "\n" +
                "这大概是全世界最难懂的一本书了，倒不是说\n" +
                "它用了什么已经绝迹的语言，而在于每一页都\n" +
                "是谜题。\n" +
                "\n" +
                "实际上这本书只有五页，但想一路破解通关，\n" +
                "需要你有强大的推理能力，甚至是运气。\n" +
                "\n" +
                "工业设计师Brady Whitney动用了机械结构、\n" +
                "宗教符号等元素，来给读者设了大量的关卡。\n" +
                "深读它的确很健脑，但就是头发掉得有点儿多。\n" + "<html><body><b>"
                + "150美元" + "</b></font></body></html>" + "（约合人民币1002元）";
        text.setMovementMethod(ScrollingMovementMethod.getInstance());//滚动
        text.setText(Html.fromHtml(bets));
    }

    public ImageView getImageView() {
        return imageView;
    }

    public RelativeLayout getZongRe() {
        return zongRe;
    }

    public void setZongRe(RelativeLayout zongRe) {
        this.zongRe = zongRe;
    }

    @Override
    public int getFragmentViewById() {
        return R.layout.five_fragment;
    }

}
